import HttpHandler from "@/handler/HttpHandler"
import {addParamsForPath} from '@/utils/xhrPathTurn'
export default class LeaveApprovalApi {
  constructor() {
    this.http = new HttpHandler()
  }
  // 请假单查询列表
  list(data){
    let url = '/workflow/leave/list'
    return this.http.post(url, data)
  }
  // 获取请假类型
  getLeaves(data){
    let url = '/workflow/leave/getLeaves'
    return this.http.post(url, data)
  }
  // 发起请假
  startLeave(data){
    let url = '/workflow/leave/startLeave'
    return this.http.post(url, data)
  }
  //   删除请假
  delete(data){
    let url = '/workflow/leave/delete'
    return this.http.post(url, data)
  }
  //   查看详情接口
  detail(data){
    let url = '/workflow/eave/detail'
    return this.http.post(url, data)
  }
}
